<%@ page language="java" import="java.util.*,org.model.ArtAndProClass,org.model.Article" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>大家好我是拷贝忍者！Mir.刘</title>
		<link rel="stylesheet" href="css/all.css" type="text/css" media="screen">
		<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
		<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
		<script type="text/javascript" src="js/jquery-1.12.3.min.js"></script>
	</head>
	<body class="index" style="zoom: 1;">
		<div style="position:relative;width:70%;left:15%">
			<%@ include file="head.jsp"%>
			<div class="page-wrapper">
				<div class="page-content">
					<ul class="breadcrumb">
						<li><span class="breadcrumb-title">当前位置：</span><a href="Home.action">首页</a>
						</li>
						<%
							ArrayList<ArtAndProClass> loc=new ArrayList<ArtAndProClass>();
							if(request.getAttribute("ArticleClass")!=null){
								ArtAndProClass is=(ArtAndProClass)request.getAttribute("ArticleClass");
								while(is.getFatherClass()!=null){
									loc.add(is);
									is=is.getFatherClass();
								}
								//添加顶级class
								loc.add(is);
								for(int i=loc.size()-1;i>=0;i--){
						%>
							<li><a href="articleClass.action?classId=<%=loc.get(i).getClassId() %>"><%=loc.get(i).getClassName() %></a></li>
						<%
								}
							}
						%>
						<li>${Product.productName }</li>
					</ul>
					<div class="row">
						<div class="col-md-9 col-main">
							<div class="panel panel-body panel-product">
								<div class="row">
									<div class="col-md-5">
										<div class="product-image media-wrapper">
											<img src="${Product.images }" title="${Product.productName }" alt="${Product.productName }">
										</div>
									</div>
									<div class="col-md-7">
										<div class="product-property">
											<h1 class="header-dividing">${Product.productName }</h1>
											<ul class="list-unstyled meta-list">
												<li><span class="meta-name">价格</span><span class="meta-value"><span class="text-muted text-latin">￥</span> <strong class="text-danger text-latin text-lg">${Product.price }</strong></span>
												</li>
												<li><span class="meta-name">上架时间</span><span class="meta-value"><span class="text-muted text-latin"></span> <strong class="text-latin text-lg">${Product.putawayTime }</strong></span>
												</li>
											</ul>
										</div>
									</div>
								</div>
								<h5 class="header-dividing"><i class="icon-file-text-alt text-muted"></i> 详情</h5>
								<div class="article-content">
									${Product.info }
								</div>
								<div class="article-files">
									<ul class="files-list clearfix"></ul>
								</div>
							</div>
				        </div>
				        <div class="col-md-3 col-side">
								<side class="page-side">
									<div id="block6" class="panel panel-block ">
										<div class="panel-heading">
											<strong><i class="icon-folder-close"></i> 产品分类</strong>
										</div>
										<div class="panel-body">
											<ul class="nav nav-secondary nav-stacked">
											<c:forEach items="${requestScope.menu }" var="ismenu">
												<c:if test="${ismenu.classMap.equals('product') }">
												<li>
													<a href="<c:if test="${ismenu.getArt_ProExistBoolean() }">
															${ismenu.classMap }Detail.action?articleId=${ismenu.getArt_ProId() }
														</c:if>
														<c:if test="${!ismenu.getArt_ProExistBoolean() }">
															${ismenu.classMap }Class.action?classId=${ismenu.classId }
														</c:if>"><i class="icon-folder-close-alt ">&nbsp ${ismenu.className }</i>
													</a>
												</li>
												</c:if>
											</c:forEach>
											</ul>
										</div>
									</div>
								</side>
							</div>
			        </div>
				</div>
			</div>
			<%@ include file="foot.jsp"%>
		</div>
	</body>

</html>
